<?php
/**
 * Simple Caching File
 * 
 * @author Iszak Bryan, (updated by) Carl
 * @copyright 2009
 */

class Cache
{
	private $cache = array();

	/**
	* Set data to the cache
	* 
	* @param $key string|array
	* @param $value mixed
	*/
	public function set($key, $value = null)
	{
		$cache[$key] = $value;
	}

	/**
	* Get data from the cache
	* 
	* @param $key string
	* @return mixed
	*/
	public function get($key)
	{
		if (isset(self::$cache[$key]) === true)
		{
			return self::$cache[$key];
		}
		else
		{
			return null;
		}
	}
}